package factory.abstractFactory;

import factory.Sender;

/**
 * 抽象工厂
 * @author Administrator
 *
 */
public class Test {
	public static void main(String[] args) {
		Provider smsProvider=new SmsFactory();
		Sender sms = smsProvider.provide();
		sms.send();
		
		Provider mailProvider=new MailFactory();
		Sender mail = mailProvider.provide();
		mail.send();
	}
}
